package com.originskyseed.platform.cms.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.cms.vo.CmsContentListVO;
import com.originskyseed.platform.cms.vo.InformationListVO;
import com.originskyseed.platform.core.base.BasePage;

/**
 * 信息查询Service接口类
 *
 * @author TangWangHui
 */
public interface ICmsContentListService {

	/**
	 * 按条件分页查询内容 selectCmsContentListByPage
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<InformationListVO> selectCmsContentListByPage(Map<String, Object> params, BasePage<InformationListVO> page) throws Exception;

	/**
	 * 按条件查询内容 selectCmsContentListByPage
	 * 
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<InformationListVO> selectCmsContentList(Map<String, Object> params) throws Exception;

	/**
	 * 查询消息公告、热门推荐
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<Map<String, Object>> selectNoticeOrRecommend(Map<String, Object> params) throws Exception;

	/**
	 * 根据id查询内容 selectCmsContentById
	 * 
	 * @param contentId
	 * @return
	 * @throws Exception
	 */
	public CmsContentListVO selectCmsContentById(String contentId) throws Exception;

	/**
	 * 查询所有内容 selectCmsContentAll
	 *
	 * @return
	 * @throws Exception
	 */
	public List<CmsContentListVO> selectCmsContentAll() throws Exception;

}
